package cn.eud360.xiangmu.dmp.utils

import com.typesafe.config.ConfigFactory

object Tools {

  lazy val load = ConfigFactory.load()

  def str2Int(str: String): Int = {
    try {
      str.toInt
    } catch {
      case _: Exception => 0
    }
  }


  def str2Double(str: String): Double = {
    try {
      str.toDouble
    } catch {
      case _: Exception => 0
    }
  }

}
